;
; Copyright (c) Microsoft Corporation.  All rights reserved.
;
;
; Use of this sample source code is subject to the terms of the Microsoft
; license agreement under which you licensed this sample source code. If
; you did not accept the terms of the license agreement, you are not
; authorized to use this sample source code. For the terms of the license,
; please see the license agreement between you and Microsoft or, if applicable,
; see the LICENSE.RTF on your install media or the root of your tools installation.
; THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
;
;
; (C) Copyright 2006 Marvell International Ltd.
; All Rights Reserved
;
;******************************************************************************
; TITLE:        EBOOT.BIB
;
; Secure Ethernet Boot Loader Source Module
;
; Memory Map
; ----------
;*****************************************************************************
;*     RAM Layout: Nand boot; non IU
;*     ------------------------------
;*      --------------------------------------> 8400_0000 
;*      |        Display for ULDR UI    |                 --------------------------------------> 83D0_0000
;*      --------------------------------------> 83CC_7000 |        EBT RAMIMAGE (1MB)    |
;*      |                               |                 --------------------------------------> 83C0_0000
;*      |                               |                 |        EBT/IPL Stack (1MB)   |
;*      |                               |                 --------------------------------------> 83B0_0000
;*      |                               |                 |        EBT/IPL RAM (1MB-16KB)   |
;*      |                               |                 --------------------------------------> 83A0_4000
;*      |                               |                 |        EBT Pagetables (16KB)  |
;*      |                               |                 --------------------------------------> 83A0_0000
;*      |                               |                 |        IPL RAMIMAGE (1MB)     |
;*      |                               |                 |                               |
;*      |                               |                 --------------------------------------> 8390_0000
;*      |                               |                 |                               |
;*      |        OS  RAM                |                 --------------------------------------> 
;*      |                               |
;*      |                               |
;*      |                               |
;*      |                               |
;*      |                               |
;*      |                               |
;*      |                               |
;*      |                               |
;*      |                               |
;*      |                               |
;*      |-------------------------------| *autosize can alter the start
;*      |        NK RAMIMAGE            |
;*      |                               |
;*      --------------------------------------> 8000_1000
;*      |                               |
;*      |        EBT ARGS(4K)           |
;*      --------------------------------------> 8000_0000
;*
;******************************************************************************

MEMORY

;   Name            Start(uva)  Size      Type
;   -------         --------  --------  ----
    SECURE_EBOOT    83C00000  00040000  RAMIMAGE
    STACK           83B00000  00100000  RESERVED
    RAM             83A04000  000FC000  RAM
    PT              83A00000  00004000  RESERVED
    ARGS            80000000  00001000  RESERVED

CONFIG

    AUTOSIZE=OFF
	COMPRESSION=OFF
	PROFILE=OFF
	KERNELFIXUPS=ON
    
	ROMSTART=83c00000
	ROMWIDTH=32
	ROMSIZE=00040000

    ; The bootloader is fixed up to run from RAM, but is stored in flash.  ROMOFFSET
    ; adjusts the .bin file record headers to that they lie in flash (this tells the
    ; bootloader already on the device to store the image in flash).
    ; The flash address we need to put it is 0x00040000 (Block 2 in Large Block NAND)
    ; 0x83c00000 + 0x7c440000 = 0x00040000
    ; Actually we don't use EBOOT.bin anymore. Just in case if it is needed.
    
        ROMOFFSET=7c440000

MODULES

;   Name    Path                                                                Memory Type
;   ------  ----------------------------------------------                      -----------
    nk.exe  $(_TARGETPLATROOT)\target\$(_TGTCPU)\$(WINCEDEBUG)\secure_eboot.exe SECURE_EBOOT

